#!/bin/bash
docker volume create --name maven-repo
docker run -it --rm --name maven -v "$(pwd)":/usr/src/app -v maven-repo:/usr/share/maven/ref -w /usr/src/app registry.cn-hangzhou.aliyuncs.com/acs/maven mvn clean install
docker stop strelitzia_prod
docker rm strelitzia_prod
docker run -idt --name=strelitzia_prod --restart=always  --net docker_webserver_prod-net -p 8089:8089 -v "$(pwd)":/wwwroot  -e TZ="Asia/Beijing"  java:8 java -jar /wwwroot/target/strelitzia-0.0.1-SNAPSHOT.jar
# -e LC_ALL="en_US.UTF-8"